#include "widget.h"
#include "ui_widget.h"
#include<QString>
#include<QDebug>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    this->setWindowTitle("Demo");
    //获取标题名称
   //QString title = this->windowTitle();
    // qDebug()<<title;

}

Widget::~Widget()
{
    delete ui;
}

